package com.ttg.web.dao.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.model.mapper.BankInfoMapper;
import com.ttg.model.pojo.BankInfo;
import com.ttg.web.dao.BankInfoDao;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author zhangHongYuan
 * @description
 * @date 2024/1/26 9:59
 */
@Service
public class BankInfoDaoImpl extends ServiceImpl<BankInfoMapper, BankInfo> implements BankInfoDao {
    @Override
    public BankInfo getByVipId(Long vipId) {
        LambdaQueryWrapper<BankInfo> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(BankInfo::getVipId,vipId);
        return getOne(lambdaQueryWrapper);
    }
}
